const state = {
	isLogin: false,
	token: null,
	userInfo: {

	}
}

const mutations = {
	login(state, {
		token,
		userInfo
	}) {
		state.token = token;
		state.userInfo = userInfo;
		state.isLogin = true;

	},
	loingOut(state) {
			state.token = null;
			state.userInfo = {};
			state.isLogin = false;
		}
	}
export default {
	namespaced: true,
	state,
	mutations,
	actions: {},
	getters: {}
}
